import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { AuthModule } from './auth/auth.module';
import { ChatModule } from './chat/chat.module';
import { WsStartGateway } from './ws/ws.gateway';

@Module({
  imports: [
    MongooseModule.forRoot('mongodb://localhost/weixin'),
    AuthModule,
    ChatModule,
  ],
  providers: [WsStartGateway],
})
export class AppModule {}
